package com.aaa.service;

import com.aaa.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ：Mickey
 * @date ：Created in 2022/11/19 10:38
 * @description：
 * @modified By：
 * @version:
 */
//调用远程微服务的名称
@FeignClient(value = "shop-product")
public interface ProductFeign {
    @RequestMapping("/product/getById/{pid}")
    public Product findById(@PathVariable("pid") Integer pid);
}